<!--
/**
 * moOde audio player (C) 2014 Tim Curtis
 * http://moodeaudio.org
 *
 * This Program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation; either version 3, or (at your option)
 * any later version.
 *
 * This Program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
 *
 * 汉化：Androidnews
 */
-->
<div id="container">
<div class="container">
	<h1 class="snd-config">图形均衡器</h1>

	<form class="form-horizontal" action="" method="post">
    	<legend>曲线
			<button class="legend-config btn btn-medium btn-primary btn-submit" type="submit" name="save" value="1">保存</button>
			<a href="#rm-curve" data-toggle="modal" class="$_hide_remove"><button class="legend-config btn btn-medium btn-primary">移除</button></a>
			<a data-toggle="modal" href="#new-curvename"><button class="legend-config btn btn-medium btn-primary">新建</button></a>
			<button class="legend-config btn btn-primary btn-small btn-submit" type="submit" name="play" value="1" $_disable_play><i class="fa-solid fa-sharp fa-play"></i>测试</button>
		</legend>

		<p class="sub-legend">
			测试按钮将使用当前选定的曲线开始播放。要启用此选项，必须在音频配置中打开均衡器。
		</p>

		<div class="control-group">
			<select id="eqg-curve-name" class="config-select-large" name="curve_name">
				$_select[curve_name]
			</select>
			<a aria-label="Help" class="config-info-toggle" data-cmd="info-curve-name" href="#notarget"><i class="fa-solid fa-sharp fa-info-circle"></i></a>
			<span id="info-curve-name" class="config-help-info">
				曲线的名称。
	        </span>
		</div>

		<div id="equalizer" class="sliderbank">
			<div class="eqg-label">Alsaequal值</div>
			<div class="eqg-vslider-group">
				<div class="eqg-vslider">
					<div id="freq1">$_select[freq1]</div>
					<input class="vslide2" type="range" min="28" max="94" step="1" name="freq1" value="$_select[freq1]" oninput="updEqgFreq('#freq1', this.value)">
					<div>31</div>
				</div>
				<div class="eqg-vslider">
					<div id="freq2">$_select[freq2]</div>
					<input class="vslide2" type="range" min="28" max="94" step="1" name="freq2" value="$_select[freq2]" oninput="updEqgFreq('#freq2', this.value)">
					<div>63</div>
				</div>
				<div class="eqg-vslider">
					<div id="freq3">$_select[freq1]</div>
					<input class="vslide2" type="range" min="28" max="94" step="1" name="freq3" value="$_select[freq3]" oninput="updEqgFreq('#freq3', this.value)">
					<div>125</div>
				</div>
				<div class="eqg-vslider">
					<div id="freq4">$_select[freq2]</div>
					<input class="vslide2" type="range" min="28" max="94" step="1" name="freq4" value="$_select[freq4]" oninput="updEqgFreq('#freq4', this.value)">
					<div>250</div>
				</div>
				<div class="eqg-vslider">
					<div id="freq5">$_select[freq1]</div>
					<input class="vslide2" type="range" min="28" max="94" step="1" name="freq5" value="$_select[freq5]" oninput="updEqgFreq('#freq5', this.value)">
					<div>500</div>
				</div>
				<div class="eqg-vslider">
					<div id="freq6">$_select[freq2]</div>
					<input class="vslide2" type="range" min="28" max="94" step="1" name="freq6" value="$_select[freq6]" oninput="updEqgFreq('#freq6', this.value)">
					<div>1K</div>
				</div>
				<div class="eqg-vslider">
					<div id="freq7">$_select[freq1]</div>
					<input class="vslide2" type="range" min="28" max="94" step="1" name="freq7" value="$_select[freq7]" oninput="updEqgFreq('#freq7', this.value)">
					<div>2K</div>
				</div>
				<div class="eqg-vslider">
					<div id="freq8">$_select[freq2]</div>
					<input class="vslide2" type="range" min="28" max="94" step="1" name="freq8" value="$_select[freq8]" oninput="updEqgFreq('#freq8', this.value)">
					<div>4K</div>
				</div>
				<div class="eqg-vslider">
					<div id="freq9">$_select[freq1]</div>
					<input class="vslide2" type="range" min="28" max="94" step="1" name="freq9" value="$_select[freq9]" oninput="updEqgFreq('#freq9', this.value)">
					<div>8K</div>
				</div>
				<div class="eqg-vslider">
					<div id="freq10">$_select[freq2]</div>
					<input class="vslide2" type="range" min="28" max="94" step="1" name="freq10" value="$_select[freq10]" oninput="updEqgFreq('#freq10', this.value)">
					<div>16K</div>
				</div>
			</div>
			<div class="eqg-label">频带(Hz)</div>
		</div>
	</form>
</div>
</div>

<form class="form-horizontal" method="post">
	<div id="rm-curve" class="modal hide" tabindex="-1" role="dialog" aria-labelledby="rm-curve-label" aria-hidden="true">
		<div class="modal-header"><button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
			<h3>移除EQ曲线？</h3>
		</div>
		<div class="modal-body txtmid">
			<h4 >$_selected_curve</h4>
			<span class="config-help-static">
				$_disable_rm_msg
			</span>
		</div>
		<div class="modal-footer">
			<button class="btn" data-dismiss="modal" aria-hidden="true">取消</button>
			<button class="btn btn-primary btn-submit" type="submit" name="remove_curve" value="1" $_disable_rm>是</button>
		</div>
	</div>
</form>

<form class="form-horizontal" method="post">
	<div id="new-curvename" class="modal hide" tabindex="-1" role="dialog" aria-labelledby="new-curvename-label" aria-hidden="true">
		<div class="modal-header"><button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
			<h3>创建新曲线</h3>
		</div>
		<div class="modal-body">
			<div class="control-group">
				<label class="control-label" for="new-curvename-input">曲线名称</label>
				<div class="controls">
					<input id="new-curvename-input" class="config-input-large config-modal-input" type="text" pattern="[A-Za-z0-9 .\-]{1,32}" name="new_curve_name" value="" autofocus>
					<span class="config-help-static">
						长度1-32个字符。允许使用空格、句号和破折号。
					</span>
				</div>
			</div>
		</div>
		<div class="modal-footer">
			<button class="btn" data-dismiss="modal" aria-hidden="true">取消</button>
			<button class="btn btn-primary btn-submit" type="submit" name="new_curve" value="1">创建</button>
		</div>
	</div>
</form>
